<?php
if( !defined('IN') ) die('bad request');
include_once( APP_PATH . 'controller'.DS.'app.class.php' );

class indexController extends appController
{
	function __construct()
	{
		parent::__construct();
	}

	function index()
	{
		$main_url = $_SERVER["HTTP_HOST"];

		$data['site_url'] = 'http://'.$main_url ;
		$data['index_title'] = home($title);//对应model函数方法home()

		$rss = new rss_php;
		$db = new dbQuery($cfg_dbhost,$cfg_dbuser,$cfg_dbpwd,$cfg_dbname);
		$files  =  get_included_files();
		dump($files);


		if( is_mobile() )
		{
			render( $data ,'mobile','index');
		}else{
			render( $data, 'muban','index');
		}

	}







}
